package cn.finder.httpcommons.parser;

import java.util.List;

public interface IReader {
	 // Methods
    List getListObjects(String listName, String itemName, Class type,Class itemClassType);


    /// <summary>
    /// 获取 属性的原生值
    /// </summary>
    /// <param name="name"></param>
    /// <returns></returns>
    Object getPrimitiveObject(Object name);

    /// <summary>
    /// 获取 属性的 对象值
    /// </summary>
    /// <param name="name"></param>
    /// <param name="type"></param>
    /// <param name="convert"></param>
    /// <returns></returns>
    Object getReferenceObject(Object name, Class type/*, DConvert convert*/);


    
    Object getArrayObject(Object name);
    
    /// <summary>
    /// 返回JSON结果中是否包含指定的字段
    /// </summary>
    /// <param name="name"></param>
    /// <returns></returns>
    boolean hasReturnField(Object name);
    
    /***
     * 获取原生的数据
     * @return
     */
    Object getData();
}
